<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
</head>
<body>
<script src="https://cdn.bootcss.com/vue/2.3.4/vue.js"></script>
<div id="root">
	<elem></elem>
</div>
<script>
	Vue.component('elem',{
		render : function(h){
			var self = this;
			console.log(h)
			return h('div',{//一个包含模板相关属性的数据对象
				'class':{
					'foo' : true,
					'bar' : false,
				},
				style : {
					color : 'red',
					fontSize : '16px',
				},
				attrs : {
					id : 'foo',
				},
				domProps : {
					innerHTML : 'Baz',
				}
			});
		}
	})
	var vm = new Vue({
		el : "#root",
		data : {

		}
	})
</script>	
</body>
</html>